fix: FIT-263: Audio region start and end editor inputs not updating on change #7829
+3
−2
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Kapture.2025-06-24.at.09.57.17.webm
This pull request introduces updates to the
RegionEditor.tsx
file to enhance type safety and improve state management. The changes include adding a type import forMSTRegion
and wrapping a component with MobX'sobserver
to enable reactive rendering.Type safety improvements:
MSTRegion
type import to ensure theregion
prop inRegionEditorProps
is strongly typed. ([web/libs/editor/src/components/SidePanels/DetailsPanel/RegionEditor.tsxR22](https://github.com/HumanSignal/label-studio/pull/7829/files#diff-f8ab8d5429cab03058f9ed3cca07385bf31d8044c7798adaeca6667366769468R22)
)State management improvements:
AudioRegionProperties
component with MobX'sobserver
to make it reactive to state changes. ([[1]](https://github.com/HumanSignal/label-studio/pull/7829/files#diff-f8ab8d5429cab03058f9ed3cca07385bf31d8044c7798adaeca6667366769468L86-R87)
,[[2]](https://github.com/HumanSignal/label-studio/pull/7829/files#diff-f8ab8d5429cab03058f9ed3cca07385bf31d8044c7798adaeca6667366769468L110-R111)
)